package com.github.bobjoy.java.thread.concurrent;

import java.util.concurrent.ThreadFactory;

public class ThreadFactoryDemo {

    public static void main(String[] args) {
        ThreadFactory factory = Thread::new;
        Thread thread = factory.newThread(() -> System.out.println("test"));
        thread.start();
    }

}
